package org.hope.db;

import org.hope.db.mysql.MySqlSearcher;

public class DBFactory
{
	public static final String MYSQL_DB = "MYSQL";

	public static RelationalSearcher getSearcher( String name ) throws Exception
	{
		if ( name.equals( MYSQL_DB ) )
		{
			return new MySqlSearcher();
		}
		else
		{
			throw new Exception( "Paser not found" );
		}
	}
}
